added return methods to some of the functions