added do_brk function