4 functions+fix