added subvices and pry for debugging