fps-function added