removed comments and adjusted indentation