implemented level layout