changed np to numpy