object drawing working