checks and stuff end