correctly passing parent around