few functions in stdlib implemented