better fix in case other type is passed fixes #11