move update parent logic to afterPropertiesSet