changed coordinates from 'qb' and 'pb' to 'nb' and 'ob'