4.0 magnitude quake hits west UP