simplified computing of child positions