trying out cos table idea