fixed mistake at 505