added reset function
changed most frame refs to params