solving mohssen comments