got rid of magic numbers kinda