extracted axes and object draw to other functions