generalized npscipy steps