got rid of the last magic number
edit