working without object literal