changed method params to string