point ratio added and some tests too