fixed fps issues and messed around with code