added relationship functions