fixed the RPS calculation - fixes #12