temporary code for intermediate steps