setHeight should have been declaired void instead of float