updated to work with formula method
initial version