switch to object literal design