adapted in order to be able to compile