convert over to object in script