solve ship shake problem