fixed home function and added incorrect function