changed it to a option object