added method solutions