tidying up some object notation