added methods for easy debugging. Fixed issue when moving