fixed positioning bug added in last commit
removing unused code