added try catch return