really bad implementation to get lines per user