changed options to object