added random placement of e_basic this may need rethinking if laggy