removed windows system calls
implemented for UNIX and Windows now