oh thanks it works actually there was a mix between the global and parent coordinates.