made usage of return; instead of return null;