before db implementation