Sample wont work correctly