cleaning up spec file, refactored translate method