made first method in datalayer