set up render attack range function