fixed splaying problem