initial implementation of simple logic