added code to coordinate transformer
refactoring