added frames check