towards implementation of joins