fix routine error, testing