changed previously added method type to String