some changes to props. completed arrays. added proper method signature