sorted layer rendering bugs, things seem to be working