hideout funciton working