fixing code syntax