make maximum frames hard-coded