changed methods function return to Array