home page also going through reusable function