added tilecost solution