fixed functions
saved py