TEST: remove useless functions and use numpy instead