some code consistency work

Signed-off-by: Alexander Skjolden <alex@plastboks.net>