added basic functions for orphanage