added fps calculation