fixed indentation
changed method param names
set up basic block