get rid of wp_weight/wp_offset variable