working version without mouse controll