added return all method
wrote returnall and corrected problems