level blocks added, more optimization