created more functions for file