reduces keyfram code for initial frame