use scala None instead of null because parameter is Option