removed unneeded 'optional' type in api