removed comments and renamed variable more sensibly