fixed prev check