Logic dont work