making create and populate style functions