relative position implemented for conditionals- need to create more sophisticated solution