removed owner_flag and all the code related