fixed my first bug