updated comments and changed last variable