positioning objects code cleaned