made the functions return strings