setLevel

created boolean set level but not working properaly