code cleanup - use frame_to_can